package com.yrmao.chiefenergyofficer.ui.common;

import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;

import com.yrmao.chiefenergyofficer.R;

/**
 * Created by yemao on 16/11/30.
 */

public class TransparentActivity extends BaseActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            //设置状态栏4.4以后可使用
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
                if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
                    getWindow().setStatusBarColor(getResources().getColor(R.color.white));
                }
            }
        }
    }
}
